/**
 * @FileName Creator2.java
 * @Package com.designMode.abstractFactory
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-5 下午3:11:42
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.abstractFactory;

/**
 * @author 顾博君
 * @ClassName Creator2
 * @Date 2016-1-5 下午3:11:42
 * @Function 产品等级2的实体工厂类
 */
public class Creator2 extends AbstractCreator {
    public Creator2() {
        System.out.println("工厂2创建");
    }

    // 只生产产品等级为2的A类产品
    @Override
    public AbstractProductA createProductA() {
        return new ProductA2();
    }

    // 只生产产品等级为2的B类产品
    @Override
    public AbstractProductB createProductB() {
        return new ProductB2();
    }
}
